<?php 
session_start(); 
if(!isset($_SESSION['id_check']))
{
        session_regenerate_id(true);
        $_SESSION['id_check'] = true;
}
?>